<?php 
	function get_annees_archivage()
	{		
		$dates_table = array();
		$bdd = PDO2::getInstance();
		
		$dates_table[] = get_annee_scolaire(date('d/m/Y'));		
		foreach($bdd->query('SELECT DATE_FORMAT(DateA,\'%e/%c/%Y\') as DateA  FROM action_archive') as $d)
		{
			$annee_scolaire = get_annee_scolaire($d['DateA']);
			if(!in_array($annee_scolaire, $dates_table))
				$dates_table[] = $annee_scolaire;
		}
		
		return $dates_table;
	}
?>